package com.zsoft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zsoft.dao.PrivilegeDao;
import com.zsoft.domain.PrivilegeDomain;
import com.zsoft.service.PrivilegeService;

@Service
public class PrivilegeServiceImpl implements PrivilegeService {
	@Autowired
	private PrivilegeDao pDao;

	@Override
	public void add(PrivilegeDomain t) {
		pDao.add(t);
	}

	@Override
	public void deleteById(Long id) {
		pDao.deleteById(id);
	}

	@Override
	public void deleteByExample(PrivilegeDomain t) {
		pDao.delete(t);
	}

	@Override
	public void update(PrivilegeDomain t) {
		pDao.update(t);
	}

	@Override
	public void saveOrUpdate(PrivilegeDomain t) {
	}

	@Override
	public List<PrivilegeDomain> findList(PrivilegeDomain t) {
		return pDao.getList(t);
	}

	@Override
	public PrivilegeDomain getById(Long id) {
		return pDao.getById(id);
	}

}
